<?
session_start();
session_destroy();
require_once ("funcoes.php");
include ("cabecalho.php");

if ($_GET[teclado] == 'Sim') {
?>
<style type="text/css">
        #kbBox {
  position: relative;
		width: 328px;
		height: 133px;
		background: url(imagens/keyboard.png) no-repeat;
  margin-bottom: 70px;

	}
</style>

<?
}	
?>
<style type="text/css">
.portal {
  background: #fff;
}
.portal #col-um {
  display: none;
}
.portal #conteudo {
  margin-left: auto;
}
</style>
<div id="conteudo">
	<div id="login" class="caixa1">
		<h1 id="tit_login" class="titulologin">Login</h1>
		<form name="login" method="post" action="validar.php">
			<table cellspacing="0" cellpadding="0" class="tabelalogin">
				<tr>
					<td>Usuario:</td>
					<td><input type="text" autocomplete="off" name="usuario" size="30" /></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
	
				<tr id="senha">
<?
if ($_GET[teclado] == 'Sim') {
?>
					<td>Senha:</td>
     <td>
						<div id="kbForm">
							<div class="kbFormElement">
								<input type="password" id="dataInput" size="30" name="senha" maxlength="30" autocomplete="off" readonly="true"/>
							</div>
						</div>
					</td>
    </tr>
    </table>

						<div id="kbBox">
						<map id="kbMap" name="keyboard"></map>
							<img src="imagens/null.gif" name="image" border="0" usemap="#keyboard" alt="Virtual keyboard image"/>
						</div>

<?
} else {
?>
					<td>Senha:</td>
					<td><input  type="password" name="senha" autocomplete="off" size="30" /></td>
				</tr>
			</table>
<?
}
?>

<?
if ($_GET[teclado] == 'Sim') {
?>
  <p>Para digitar a senha, utilize o teclado virtual acima.</p>
<?
}
?>
   <div class="txtdir">
<?
if ($_GET[teclado] == 'Sim') {
?>
							<span class="kbFormElement" style="float: left;">
								<input type="button" name="contrast" onclick="keyboard.swapContrast();" class="input-button" value="Contraste do teclado virtual" />
							</span>
<?
}
?><br />
						<input type="submit" class="input-button" name="btnentrar" value="OK" />
						<input type="reset" class="input-button" name="btnreset" value="limpar" />
   </div>
   <? if (isset($_GET[Erro])) { ?>

						<p class="aviso tcen"><?=$_GET[Erro]?></p></
					<? } ?>
		</form>

	</div>
</div>
<? include "rodape.php";?>
</div>
</body>
</html>
